\hypertarget{classSimpleValidator}{\section{Simple\-Validator Class Reference}
\label{classSimpleValidator}\index{Simple\-Validator@{Simple\-Validator}}
}


{\ttfamily \#include $<$simple\-\_\-validator.\-h$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877}{Format\-Code\-Value} \{ \\*
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a64c3c9ce9292bde9a340f6519d091557}{Correct}, 
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a0fc5c4fbfe374e6b550779539ee91b14}{Number\-Or\-Variable\-Bad\-Format}, 
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a370653ebfa531723111abeb4b6674a4f}{Signs\-Bad\-Format}, 
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a6dd51c57d6c2129340670a2bba5efb13}{Unrecognized\-Character}, 
\\*
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a51d2e3ea49c99672058ccd89de7a2988}{Empty\-Equation}, 
{\bfseries Other\-Error}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classSimpleValidator_aa5dbe6546cc361be3a05f605f6aedf0e}{Simple\-Validator} ()
\item 
\hyperlink{classSimpleValidator_a4fc2a136e267f3671aabe05540542877}{Format\-Code\-Value} \hyperlink{classSimpleValidator_a1818841a69d038382149f6176eacee3d}{Do\-Validation} ()
\item 
void \hyperlink{classSimpleValidator_a4b401fc0ab1c3db58d701130be13d2f2}{set\-\_\-equation} (string \hyperlink{classSimpleValidator_ad2c87661ce8d908d1fcb89c744153e05}{equation})
\item 
string \hyperlink{classSimpleValidator_ad2c87661ce8d908d1fcb89c744153e05}{equation} ()
\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const string \hyperlink{classSimpleValidator_a5b0a47cbc27cd97b9e9792aa58f8a1da}{mapping} \mbox{[}6\mbox{]}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to make validations in the input equations. 

\subsection{Member Enumeration Documentation}
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877}{\index{Simple\-Validator@{Simple\-Validator}!Format\-Code\-Value@{Format\-Code\-Value}}
\index{Format\-Code\-Value@{Format\-Code\-Value}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{Format\-Code\-Value}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Simple\-Validator\-::\-Format\-Code\-Value}}}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877}
This types represent format codes for validation. \begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{Correct@{Correct}!Simple\-Validator@{Simple\-Validator}}\index{Simple\-Validator@{Simple\-Validator}!Correct@{Correct}}\item[{\em 
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a64c3c9ce9292bde9a340f6519d091557}{Correct}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a64c3c9ce9292bde9a340f6519d091557}
}]Format is Ok. \index{Number\-Or\-Variable\-Bad\-Format@{Number\-Or\-Variable\-Bad\-Format}!Simple\-Validator@{Simple\-Validator}}\index{Simple\-Validator@{Simple\-Validator}!Number\-Or\-Variable\-Bad\-Format@{Number\-Or\-Variable\-Bad\-Format}}\item[{\em 
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a0fc5c4fbfe374e6b550779539ee91b14}{Number\-Or\-Variable\-Bad\-Format}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a0fc5c4fbfe374e6b550779539ee91b14}
}]There is an issue in the numbers or variables, for example something like \char`\"{}3+ 2.\-02 14=1\char`\"{}, \char`\"{}3.\-42.\-3+5=1\char`\"{}, or \char`\"{}y3+2=1\char`\"{} \index{Signs\-Bad\-Format@{Signs\-Bad\-Format}!Simple\-Validator@{Simple\-Validator}}\index{Simple\-Validator@{Simple\-Validator}!Signs\-Bad\-Format@{Signs\-Bad\-Format}}\item[{\em 
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a370653ebfa531723111abeb4b6674a4f}{Signs\-Bad\-Format}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a370653ebfa531723111abeb4b6674a4f}
}]Problem with the signs, for example \char`\"{}24+3+=1\char`\"{} or \char`\"{}+3+5=1\char`\"{}, or \char`\"{}4++4=1\char`\"{} \index{Unrecognized\-Character@{Unrecognized\-Character}!Simple\-Validator@{Simple\-Validator}}\index{Simple\-Validator@{Simple\-Validator}!Unrecognized\-Character@{Unrecognized\-Character}}\item[{\em 
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a6dd51c57d6c2129340670a2bba5efb13}{Unrecognized\-Character}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a6dd51c57d6c2129340670a2bba5efb13}
}]Unrecognized character, as for example \char`\"{}3+,=1\char`\"{} \index{Empty\-Equation@{Empty\-Equation}!Simple\-Validator@{Simple\-Validator}}\index{Simple\-Validator@{Simple\-Validator}!Empty\-Equation@{Empty\-Equation}}\item[{\em 
\hypertarget{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a51d2e3ea49c99672058ccd89de7a2988}{Empty\-Equation}\label{classSimpleValidator_a4fc2a136e267f3671aabe05540542877a51d2e3ea49c99672058ccd89de7a2988}
}]The equation is empty (\char`\"{}\char`\"{}). \end{description}
\end{Desc}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classSimpleValidator_aa5dbe6546cc361be3a05f605f6aedf0e}{\index{Simple\-Validator@{Simple\-Validator}!Simple\-Validator@{Simple\-Validator}}
\index{Simple\-Validator@{Simple\-Validator}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{Simple\-Validator}]{\setlength{\rightskip}{0pt plus 5cm}Simple\-Validator\-::\-Simple\-Validator (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classSimpleValidator_aa5dbe6546cc361be3a05f605f6aedf0e}
Simple constructor. 

\subsection{Member Function Documentation}
\hypertarget{classSimpleValidator_a1818841a69d038382149f6176eacee3d}{\index{Simple\-Validator@{Simple\-Validator}!Do\-Validation@{Do\-Validation}}
\index{Do\-Validation@{Do\-Validation}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{Do\-Validation}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Simple\-Validator\-::\-Format\-Code\-Value} Simple\-Validator\-::\-Do\-Validation (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classSimpleValidator_a1818841a69d038382149f6176eacee3d}
This method validates an equation from the input.

\begin{DoxyReturn}{Returns}
A code value representing a bad format issue. 
\end{DoxyReturn}
\hypertarget{classSimpleValidator_ad2c87661ce8d908d1fcb89c744153e05}{\index{Simple\-Validator@{Simple\-Validator}!equation@{equation}}
\index{equation@{equation}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{equation}]{\setlength{\rightskip}{0pt plus 5cm}string Simple\-Validator\-::equation (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classSimpleValidator_ad2c87661ce8d908d1fcb89c744153e05}
equation getter. \begin{DoxyReturn}{Returns}
string stored in the object. 
\end{DoxyReturn}
\hypertarget{classSimpleValidator_a4b401fc0ab1c3db58d701130be13d2f2}{\index{Simple\-Validator@{Simple\-Validator}!set\-\_\-equation@{set\-\_\-equation}}
\index{set\-\_\-equation@{set\-\_\-equation}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{set\-\_\-equation}]{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Validator\-::set\-\_\-equation (
\begin{DoxyParamCaption}
\item[{string}]{equation}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classSimpleValidator_a4b401fc0ab1c3db58d701130be13d2f2}
equation setter. 
\begin{DoxyParams}{Parameters}
{\em equation} & the equation to store in the object. \\
\hline
\end{DoxyParams}


\subsection{Member Data Documentation}
\hypertarget{classSimpleValidator_a5b0a47cbc27cd97b9e9792aa58f8a1da}{\index{Simple\-Validator@{Simple\-Validator}!mapping@{mapping}}
\index{mapping@{mapping}!SimpleValidator@{Simple\-Validator}}
\subsubsection[{mapping}]{\setlength{\rightskip}{0pt plus 5cm}const string Simple\-Validator\-::mapping\hspace{0.3cm}{\ttfamily [static]}}}\label{classSimpleValidator_a5b0a47cbc27cd97b9e9792aa58f8a1da}
{\bfseries Initial value\-:}
\begin{DoxyCode}
= \{
    \textcolor{stringliteral}{"Correct"}, \textcolor{stringliteral}{"Variables bad format"}, \textcolor{stringliteral}{"Signs bad format"},
    \textcolor{stringliteral}{"Unrecognized character"}, \textcolor{stringliteral}{"Empty equation"}, \textcolor{stringliteral}{"Other Error"}\}
\end{DoxyCode}
Mapping from error code to a corresponding error message. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
simple\-\_\-validator.\-h\item 
simple\-\_\-validator.\-cpp\end{DoxyCompactItemize}
